/*
 * Copyright (c) 2020-2099 the original author or authors. All rights reserve.
 */
package org.tianyun.cloud.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 分页信息
 *
 * @auther ebert_chan
 */
@ApiModel
public class PageResult<T> extends AbstracePageResult<T> {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "第N页，从1开始", required = true)
    private int pageIndex;

    @ApiModelProperty(value = "总记录数", required = true)
    private long totals;

    @ApiModelProperty(value = "总页数", required = true)
    private long pages;

    // getter and setter

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public long getTotals() {
        return totals;
    }

    public void setTotals(long totals) {
        this.totals = totals;
    }

    public long getPages() {
        return pages;
    }

    public void setPages(long pages) {
        this.pages = pages;
    }

}
